import time
import random
d=1
c=20
while d<=30:
    print(f"今天是第{d}天，温度：{c}")
    if c<0:
        print("今天好冷")
    time.sleep(0.1)
    a=random.randint(-1,2)
    c-=a
    d+=1
    if c>=20:
        c-=4
while d>30 and d<=60:
    print(f"今天是第{d}天，温度：{c}")
    if c>30:
        print("今天好热")
    time.sleep(0.1)
    a=random.randint(-1,2)
    c+=a
    d+=1
    if c<10 and d>45:
        c+=5